#ifndef __CAMERA_H__
#define __CAMERA_H__
extern int VIDEO_WIDTH;
extern int  VIDEO_HEIGHT;
#define BUFFER_COUNT 8
#define PICTURE_LENGTH ((VIDEO_WIDTH*VIDEO_HEIGHT*3)>>1)
#define FPS 30
#define V4L2_MODE_HIGHQUALITY   0x0001  /*  High quality imaging mode */
#define V4L2_MODE_VIDEO             0x0002  /*  Added by raymonxiu For video capture */
#define V4L2_MODE_IMAGE             0x0003  /*  Added by raymonxiu For image capture */
#define V4L2_MODE_PREVIEW           0x0004  /*  Added by raymonxiu For preview capture */
#define V4L2_CAP_TIMEPERFRAME   0x1000  /*  timeperframe field is supported */

typedef enum
{
    TVD_NTSC                = 0,
    TVD_PAL                 = 1,
    TVD_SECAM               = 2,
    TVD_YPBPR               = 3,
}tvd_system_t;

#endif

